package animal;

public class main {
    public static void main(String[] args){
        Animal dog = new Dog();
        Animal cat = new Cat();
        Afraid afraidDog = new Dog();
        Afraid afraidCat = new Cat();
        Person person = new Person();
        person.feed(dog);
        person.feed(cat);
        person.catchAnimal(afraidDog);
        person.catchAnimal(afraidCat);
        dog.eat();
        cat.eat();
        afraidDog.makeSounds();
        afraidCat.escape();
    }
}
